Skip to content

Add chunks_done field to submissions_failed#108

Merged
OpsBotPrime merged 3 commits into
masterfrom
jerbaroo-104-add-chunks_done-to-submissions_failed
May 26, 2026
Merged

Add chunks_done field to submissions_failed#108
OpsBotPrime merged 3 commits into
masterfrom
jerbaroo-104-add-chunks_done-to-submissions_failed

Conversation

@jerbaroo
Copy link
Copy Markdown
Contributor

Closes #104

This PR adds a NULLABLE (for backwards-compatibility) field chunks_done to the table submissions_failed. There is also a corresponding field added to the two SubmissionFailed Rust types (internal and exported by PyO3).

Tests: integration test which consumes two chunks and failed on the 3rd chunk. The SubmissionFailedError includes a SubmissionFailed with a chunks_done value of 2.

@jerbaroo jerbaroo requested a review from Qqwy April 29, 2026 16:21
@jerbaroo jerbaroo force-pushed the jerbaroo-104-add-chunks_done-to-submissions_failed branch from 6c8ae84 to 5968e74 Compare April 30, 2026 06:26
Copy link
Copy Markdown
Contributor

@Qqwy Qqwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much!

This is wonderfully straightforward PR, implementing exactly the desired change and nothing else. Well done 👍!

We could release a new version in a few days time that turns the nullable field into a required field, as done submissions are removed after a while (which is configurable but usually is a few days IIRC).

Comment thread libs/opsqueue_python/tests/test_roundtrip.py
@jerbaroo
Copy link
Copy Markdown
Contributor Author

jerbaroo commented May 26, 2026

We could release a new version in a few days time that turns the nullable field into a required field,

Yep sounds good, will follow-up with that in a few days :)

Edit: tracking in #110

@jerbaroo jerbaroo force-pushed the jerbaroo-104-add-chunks_done-to-submissions_failed branch from 5968e74 to 593049b Compare May 26, 2026 07:49
@jerbaroo jerbaroo force-pushed the jerbaroo-104-add-chunks_done-to-submissions_failed branch from 593049b to 02c62f6 Compare May 26, 2026 07:52
@jerbaroo
Copy link
Copy Markdown
Contributor Author

@OpsBotPrime merge and tag

Approved-by: jerbaroo
Priority: Normal
Auto-deploy: false
@OpsBotPrime
Copy link
Copy Markdown
Contributor

Rebased as 40634ba, waiting for CI …

@OpsBotPrime
Copy link
Copy Markdown
Contributor

CI job 🟡 started.

@OpsBotPrime
Copy link
Copy Markdown
Contributor

@jerbaroo I tagged your PR with v52. Please wait for the build of 40634ba to pass and don't forget to deploy it!

@OpsBotPrime OpsBotPrime merged commit 40634ba into master May 26, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SubmissionFailed could have a chunks_done field

3 participants